package com.cloudsigns.factorymanager2.produce.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.R;


public class ProduceProductWarehousingAdapter extends BaseAdapter{
    private Context context;

    public ProduceProductWarehousingAdapter(Context context){
     this.context=context;
    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View view, ViewGroup viewGroup) {
        ViewHolder holder;
        if (null==view){
            view= LayoutInflater.from(context).inflate(R.layout.item_produce_product_warehousing,null);
            holder=new ViewHolder();
            holder.tv_product_name=view.findViewById(R.id.tv_product_name);
            holder.tv_status=view.findViewById(R.id.tv_status);
            holder.tv_project_name=view.findViewById(R.id.tv_project_name);
            holder.tv_engineering_name=view.findViewById(R.id.tv_engineering_name);

            view.setTag(holder);
        }else{
            holder= (ViewHolder) view.getTag();
        }

        return view;
    }

    static class ViewHolder{
        TextView tv_product_name;
        TextView tv_status;
        TextView tv_project_name;
        TextView tv_engineering_name;
    }
}
